package com.qyhl.webtv.module_microvideo.shortvideo.rank;


import com.qyhl.webtv.commonlib.entity.microvideo.ShortVideoBean;

import java.util.List;

public class ShortVideoRankPresenter implements ShortVideoRankContract.ShortVideoRankPresenter {
    private ShortVideoRankModel mModel;
    private ShortVideoRankContract.ShortVideoRankView mView;

    ShortVideoRankPresenter(ShortVideoRankContract.ShortVideoRankView mView) {
        this.mView = mView;
        this.mModel = new ShortVideoRankModel(this);
    }

    @Override
    public void getDataList(int type,String tagId, String page) {
        mModel.getDataList(type,tagId, page);
    }

    @Override
    public void setData(List<ShortVideoBean> beanList, boolean isMore) {
        mView.setData(beanList, isMore);
    }

    @Override
    public void setError(String msg, boolean isMore) {
        mView.setError(msg, isMore);
    }
}
